class WalletCardModel {
  final int isShowWithdraw;
  final int value;
  final String cardName;
  final String key;

  WalletCardModel({
    required this.isShowWithdraw,
    required this.value,
    required this.cardName,
    required this.key,
  });

  factory WalletCardModel.fromJson(Map<String, dynamic> json) {
    return WalletCardModel(
      isShowWithdraw: json['is_show_withdraw'],
      value: json['value'],
      cardName: json['card_name'],
      key: json['key'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'is_show_withdraw': isShowWithdraw,
      'value': value,
      'card_name': cardName,
      'key': key,
    };
  }
}
